package cn.com.dhcc.turbo.service.registry.vo;

import java.util.Date;

public class PipeLineFtp {
	private String pipetype = "FTP" ;//交换通道类型  FTP
	private String ip;//ip
	private Integer port;//端口
	private String rootDir;//根目录
    private Integer maxLogins;//最大连接数
    private String status;//状态
    private  Date lastStartTime;
	public String getPipetype() {
		return  "FTP";
	}

	public void setPipetype(String pipetype) {
		this.pipetype = "FTP";
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}


	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}



	public String getRootDir() {
		return rootDir;
	}

	public void setRootDir(String rootDir) {
		this.rootDir = rootDir;
	}

	public Integer getMaxLogins() {
		return maxLogins;
	}

	public void setMaxLogins(Integer maxLogins) {
		this.maxLogins = maxLogins;
	}


	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getLastStartTime() {
		return lastStartTime;
	}

	public void setLastStartTime(Date lastStartTime) {
		this.lastStartTime = lastStartTime;
	}

	@Override
	public String toString() {
		return "PipeLineFtp [pipetype=" + pipetype + ", ip=" + ip + ", port="
				+ port + ", rootDir=" + rootDir + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ip == null) ? 0 : ip.hashCode());
		result = prime * result
				+ ((maxLogins == null) ? 0 : maxLogins.hashCode());
		result = prime * result + ((port == null) ? 0 : port.hashCode());
		result = prime * result + ((rootDir == null) ? 0 : rootDir.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PipeLineFtp other = (PipeLineFtp) obj;
		if (ip == null) {
			if (other.ip != null)
				return false;
		} else if (!ip.equals(other.ip))
			return false;
		if (maxLogins == null) {
			if (other.maxLogins != null)
				return false;
		} else if (!maxLogins.equals(other.maxLogins))
			return false;
		if (port == null) {
			if (other.port != null)
				return false;
		} else if (!port.equals(other.port))
			return false;
		if (rootDir == null) {
			if (other.rootDir != null)
				return false;
		} else if (!rootDir.equals(other.rootDir))
			return false;
		return true;
	}

}
